Class MethodReflection

Summary

Fully Qualified Name: Zend\Code\Reflection\MethodReflection
Extends: ReflectionMethod
Implements: ReflectionInterface

Description

Methods

Name Description Defined By
__toString() MethodReflection
getAnnotations() MethodReflection
getBody() Get method body MethodReflection
getContents() Get method contents MethodReflection
getDeclaringClass() Get reflection of declaring class MethodReflection
getDocBlock() Retrieve method DocBlock reflection MethodReflection
getParameters() Get all method parameter reflection objects MethodReflection
getPrototype() Get method prototype MethodReflection
getStartLine() Get start line (position) of method MethodReflection
toString() MethodReflection

Method Details

__toString()

Returns: string

getAnnotations()

Parameter Name Type Description
$annotationManager \AnnotationManager

Returns: \AnnotationScanner

getBody()

Get method body

Returns: string

getContents()

Get method contents

Parameter Name Type Description
$includeDocBlock bool

Returns: string

getDeclaringClass()

Get reflection of declaring class

Returns: \ClassReflection

getDocBlock()

Retrieve method DocBlock reflection

Returns: \DocBlockReflection|bool

getParameters()

Get all method parameter reflection objects

Returns: \ParameterReflection[]

getPrototype()

Get method prototype

Parameter Name Type Description
$format

Returns: array

getStartLine()

Get start line (position) of method

Parameter Name Type Description
$includeDocComment bool

Returns: int

toString()

Returns: string

Top